package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.EmpInfoXcxShowAddDTO;
import org.jsola.hr.dto.EmpInfoXcxShowUpdateDTO;
import org.jsola.hr.query.EmpInfoXcxShowQuery;
import org.jsola.hr.vo.EmpInfoXcxShowListVO;
import org.jsola.hr.vo.EmpInfoXcxShowVO;

import java.util.List;

/**
 * 员工小程序展示项
 *
 * @author zhr
 */
@Api(tags = "hr-员工小程序展示项")
public interface IEmpInfoXcxShowControllerAPI {

    /**
     * 新增员工小程序展示项
     * @param empInfoXcxShowAddDTO 员工小程序展示项新增实体
     * @return 员工小程序展示项展示对象
     */
    @ApiOperation(value = "新增员工小程序展示项")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empInfoXcxShowAddDTO", dataType = "EmpInfoXcxShowAddDTO", value = "新增员工小程序展示项", paramType = "body")
    })
    Result<EmpInfoXcxShowVO> save(EmpInfoXcxShowAddDTO empInfoXcxShowAddDTO);


    /**
     * 修改员工小程序展示项
     * @param empInfoXcxShowUpdateDTO 员工小程序展示项
     * @return 更新数量
     */
    @ApiOperation(value = "修改员工小程序展示项")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empInfoXcxShowUpdateDTO", dataType = "EmpInfoXcxShowUpdateDTO", value = "修改员工小程序展示项", paramType = "body")
    })
    Result<Integer> update(EmpInfoXcxShowUpdateDTO empInfoXcxShowUpdateDTO);




    /**
     * 删除单个员工小程序展示项，彻底删除
     * @param empInfoXcxShowId 员工小程序展示项id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个员工小程序展示项，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empInfoXcxShowId", dataType = "String", value = "员工小程序展示项id", paramType = "path")
    })
    Result<Integer> delete(String empInfoXcxShowId);


    /**
     * 批量删除员工小程序展示项，彻底删除
     * @param empInfoXcxShowIds 员工小程序展示项id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除员工小程序展示项，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empInfoXcxShowIds", dataType = "String[]", value = "员工小程序展示项id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] empInfoXcxShowIds);


    /**
     * 根据员工小程序展示项id查询员工小程序展示项详情
     * @param empInfoXcxShowId 员工小程序展示项id
     * @return 员工小程序展示项详情
     */
    @ApiOperation(value="根据员工小程序展示项id查询员工小程序展示项详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empInfoXcxShowId", dataType = "String", value = "员工小程序展示项id", paramType = "path")
    })
    Result<EmpInfoXcxShowVO> findById(String empInfoXcxShowId);


    /**
     * 查询员工小程序展示项
     * @param empInfoXcxShowQuery 员工小程序展示项查询参数
     * @return page
     */
    @ApiOperation(value="查询员工小程序展示项")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empInfoXcxShowQuery", dataType = "EmpInfoXcxShowQuery", value = "员工小程序展示项查询参数", paramType = "query")
    })
    Result<List<EmpInfoXcxShowListVO>> listAll(EmpInfoXcxShowQuery empInfoXcxShowQuery);


     /**
     * 分页查询员工小程序展示项
     * @param empInfoXcxShowQuery 员工小程序展示项查询参数
     * @return page
     */
    @ApiOperation(value="分页查询员工小程序展示项")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empInfoXcxShowQuery", dataType = "EmpInfoXcxShowQuery", value = "员工小程序展示项查询参数", paramType = "query")
    })
    Result<Page<EmpInfoXcxShowListVO>> page(EmpInfoXcxShowQuery empInfoXcxShowQuery);


    /**
     * 查询员工小程序展示项
     *
     * @return page
     */
    @ApiOperation(value = "查询员工小程序展示项")
    Result<String[]> getShowXcx();


}

